﻿using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using Owin;

[assembly: OwinStartup(typeof(Jhong.FunMVC.Test.Startup))]

namespace Jhong.FunMVC.Test
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            // 有关如何配置应用程序的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkID=316888
            app.UseStaticFile(new string[] { "/Static" }, new StaticFile.StaticFileOption() { CaseSensitive = false });
            app.UseOWINSession();
            app.UseFunMVC(new FunMVCOption()
            {
                CustomError = new CustomError()
                {
                    PageNotFoundPage=@"http://www.baidu.com"
                }
            })
            .UseRazor();
        }



    }
}
